<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title">分销列表</h3>
				<div class="box-tools pull-right">
				</div>
			</div>
			<div class="box-body">
                <div class="form-group">
                    <div class="col-md-3">
                        <div class="input-group date ">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" class="form-control pull-right" id="searchDate" placeholder="根据关注时间搜索...">
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="fa fa-search"></i></span>
                            <input type="text" class="form-control" id="nickname" placeholder="根据昵称搜索...">
                        </div>
                    </div>
                    <div class="col-md-3">
                        <button type="button" onclick="tbReload();" class="btn btn-primary">搜索</button>
                    </div>
                </div>
                <div class="col-md-12">
				<table id="tb_tab" class="table table-bordered table-striped">
				</table>
				</div>
			</div>
		</div>
	</div>
</div>

<link rel="stylesheet" href="plugins/bootstrap-treetable/bootstrap-table.min.css">
<script src="plugins/bootstrap-treetable/bootstrap-table.min.js"></script>
<script src="plugins/bootstrap-treetable/bootstrap-treetable.js"></script>

<script type="text/javascript">

$(function() {

    $('#searchDate').datepicker({
        language: 'zh-CN',
        format: 'yyyy-mm-dd',
        autoclose: true,
        todayHighlight: true
    });

    $('#tb_tab').bootstrapTable({
        url: '/admin/wx/menu/distlistjson',
        toolbar: '#toolbar',
        sidePagination: 'server',
        pagination: true,
        treeView: true,
        treeId: "Id",
        treeField: "Name",
        treeRootLevel: 1,
        clickToSelect: true,
        pageNumber:1,
        pageSize: 1,
        pageList: [10, 25, 50, 100],
        queryParams:function (params) {
           var temp = {
               limit: params.limit,   //页面大小
               offset: params.offset  //页码
           }
            return temp;
        },

        columns: [{
            field: 'Name',
            title: '名称'
        }, {
            field: 'Url',
            title: 'URL'
        }]

    });




});

</script>